<h1> Listing <%= @object_name.pluralize %></h1>
<%= link_to_function 'New '+@object_name do |page|
		page['new_form'].toggle
		page['edit_form'].hide
	end
 %>
<div id='new_form' style='display:none;'>
<%= render :partial => 'layouts/object_view/new', 
			:locals => { :object => @new_object } %></div>
<div id='edit_form' style='display:none;'>
</div>
<br/>
<br/>
<div id='objects'>
<% for object in @objects %>
	<%= render :partial => 'layouts/object_view/show', :locals => { :object => object } %>
<% end %>
</div>
